package com.pig4cloud.pigx.knowledge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.knowledge.dto.FunctionDTO;
import com.pig4cloud.pigx.knowledge.entity.AiFuncEntity;

/**
 * AI func 服务
 *
 * @author lengleng
 * @date 2024/08/06
 */
public interface AiFuncService extends IService<AiFuncEntity> {

	/**
	 * 保存 func
	 * @param aiFunc AI 函数
	 * @return {@link Boolean }
	 */
	AiFuncEntity saveOrUpdateFunc(AiFuncEntity aiFunc);

	/**
	 * 删除 Funcs
	 * @param ids id 列表
	 * @return {@link Boolean }
	 */
	Boolean removeFuncs(Long[] ids);

	/**
	 * 检查脚本
	 * @param functionDTO 脚本
	 * @return {@link R }
	 */
	R checkScript(FunctionDTO functionDTO);

}
